export const dynamicRoutes = [
  {
    name: "system",
    path: "/system",
    hidden: false,
    redirect: "noRedirect",
    component: "Layout",
    alwaysShow: true,
    meta: { title: "系统管理", icon: "system", noCache: false },
    children: [
      {
        name: "manager",
        path: "manager",
        hidden: false,
        component: "system/manager/index",
        meta: { title: "用户管理", icon: "user", noCache: false }
      },
      {
        name: "role",
        path: "role",
        hidden: false,
        component: "system/role/index",
        meta: {
          title: "角色管理",
          icon: "peoples",
          noCache: false
        }
      },
      {
        name: "operateLog",
        path: "operateLog",
        hidden: false,
        component: "system/operateLog/index",
        meta: {
          title: "操作日志",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "sysMenu",
        path: "menu",
        hidden: false,
        component: "system/menu/index",
        meta: { title: "菜单管理", icon: "tree-table", noCache: false }
      }
    ]
  },

  {
    name: "ActiveDirectory",
    path: "/activeDirectory",
    hidden: false,
    redirect: "noRedirect",
    component: "Layout",
    alwaysShow: true,
    meta: { title: "ActiveDirectory", icon: "system", noCache: false },
    children: [
      {
        name: "ou",
        path: "/activeDirectory/ou",
        hidden: false,
        component: "activeDirectory/org/index",
        meta: {
          title: "配置中心",
          icon: "edit",
          noCache: false
        }
      },
      {
        name: "person",
        path: "/activeDirectory/person",
        hidden: false,
        component: "activeDirectory/person/index",
        meta: {
          title: "用户查询",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "group",
        path: "/activeDirectory/group",
        hidden: false,
        component: "activeDirectory/group/index",
        meta: {
          title: "组管理",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "addGroup",
        path: "/activeDirectory/group/add/:distinguishedName",
        hidden: true,
        component: "activeDirectory/group/add",
        meta: {
          title: "添加组",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "groupMember",
        path: "/activeDirectory/group/membersManage/:distinguishedName",
        hidden: true,
        component: "activeDirectory/group/membersManage",
        meta: {
          title: "组成员管理",
          icon: "documentation",
          noCache: false
        }
      },

      {
        name: "manageComputer",
        path: "/activeDirectory/manageComputer",
        hidden: false,
        component: "activeDirectory/computer/manageComputer",
        meta: {
          title: "计算机管理",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "personComputer",
        path: "/activeDirectory/personComputer",
        hidden: false,
        component: "activeDirectory/computer/personComputer",
        meta: {
          title: "个人计算机",
          icon: "documentation",
          noCache: false
        }
      }
    ]
  },
  {
    name: "syncLog",
    path: "/interfaceLog",
    hidden: false,
    redirect: "noRedirect",
    component: "Layout",
    alwaysShow: true,
    meta: { title: "ActiveDirectory", icon: "system", noCache: false },
    children: [
      {
        name: "personLog",
        path: "/interfaceLog/employee",
        hidden: false,
        component: "interfaceLog/employee",
        meta: {
          title: "用户日志",
          icon: "edit",
          noCache: false
        }
      },
      {
        name: "ouLog",
        path: "/interfaceLog/organization",
        hidden: false,
        component: "interfaceLog/organization",
        meta: {
          title: "组织日志",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "groupLog",
        path: "/interfaceLog/group",
        hidden: false,
        component: "interfaceLog/group",
        meta: {
          title: "组日志",
          icon: "documentation",
          noCache: false
        }
      },
      {
        name: "passwordLog",
        path: "/interfaceLog/password",
        hidden: false,
        component: "interfaceLog/password",
        meta: {
          title: "修改密码日志",
          icon: "documentation",
          noCache: false
        }
      }
    ]
  }
];
